<template>
  <div class="page">
    <div class="logo">
      <img src="../../assets/logo.png"/>
    </div>
    <div class="main">
      <div class="unit" v-for="p in personData" @click="$router.push('/supply/'+p.tid)">
        <div class="content">
          <img class="photo" :src="$base.serverPath+p.img">
          <p><span class="title">农场：</span>{{p.farmName}}</p>
          <p><span class="title">管理员：</span>{{p.name}}</p>
          <!--<p><span class="title">桃树编号：</span>001</p>-->
        </div>
      </div>
    </div>
    <div class="foot">
      点击管理员了解详情
    </div>

  </div>
</template>
<script>
  export default {
    data () {
      return {
        personData: this.$utils.getData("personData")
      }
    }
  }
</script>
<style lang="less" scoped>
  .page{
    background-image: url(../../assets/product/tnbj.jpg);
    background-size: auto 100%;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding-bottom: 53px;
    box-sizing: border-box;
  }
  .logo{
    img{
      width: 100px;
      margin: 20px 40px;
    }
  }
  .main{
    padding: 0 40px;
    display: flex;
    flex-wrap: wrap;
    .unit{
      width: 50%;
      text-align: center;
      padding: 30px 5px 0;
      box-sizing: border-box;
      margin-bottom: 10px;
      .content{
        background-color: #fff;
        padding: 50px 5px 20px 5px;
        position: relative;
        border-radius: 5px;
        box-sizing: border-box;
        font-size: 1.4rem;
        color: #666;
        .photo{
          width: 60px;
          height: 60px;
          position: absolute;
          top: -30px;
          left: calc(~"50% - 30px");
          border-radius: 60px;
          border: 2px solid #fff;
        }
        .title{
          color: @theme-color;
        }
      }
    }
  }

  .foot{
    text-align: center;
    width: 100%;
    color: #666;
    font-size: 1.5rem;
    margin: 30px 0;
  }

  /*动画*/
  .main{
    animation: opacityA 2s;
  }

  @keyframes opacityA {
    0% {
      opacity: 0;
    }
  }
</style>
